def greet(*args):
    print(args)
    print(*args)
    for name in args:
        print(f"Hello, {name}!")


greet("Alice", "Bob", "Charlie")

print("======================================")


def test(mode, message, grade, knowledge):
    print(f"Mode: {mode}, Message: {message}, Grade: {grade}, Knowledge: {knowledge}")


def display_info(**kwargs):
    # test(**kwargs)
    print(kwargs)
    kwargs["xx"] = "jdz"
    print(kwargs.get("xx"))
    print(*kwargs.values())
    for key, value in kwargs.items():
        print(f"{key}: {value}")


def get_args():
    return {
        "mode": "mode",
        "message": "message",
        "grade": "grade",
        "knowledge": "knowledge",
        "question_type": "question_type",
        "question_num": "question_num",
        "session_id": "session_id",
        "timeLimit": "timelimit",
        "memoryLimit": "spaceLimit",
        "time_complexity": "time_complexity",
        "space_complexity": "space_complexity",
        "code_type": "code_type",
        "input_range": "input_range",
    }


def t2(**kwargs):
    # t3(kwargs)
    tet(**kwargs)


def t3(**kwargs):
    print(kwargs)


def tet(*args, **kwargs):
    print(args)
    print(kwargs)


# display_info(name="Alice", age=30, city="New York")
# display_info(**get_args())
t2()
